package com.yzqp.generator.test.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * GoodsInfo saveForm
 */
@Data
@ApiModel(value = "商品saveForm")
public class GoodsInfoSaveForm {

    // id
    @ApiModelProperty("编号")
    private Long id;

    @NotBlank(message = "商品名称不能为空")
    @ApiModelProperty("商品名称")
    private String name;

    @NotNull(message = "价格不能为空")
    @ApiModelProperty("价格")
    private BigDecimal price;

    @NotBlank(message = "商品图片不能为空")
    @ApiModelProperty("商品图片")
    private String img;

    @NotNull(message = "上架标志不能为空")
    @ApiModelProperty("上架标志")
    private Boolean shelveFlag;

    @NotNull(message = "上架时间不能为空")
    @ApiModelProperty("上架时间")
    private Date shelveTime;

}
